package com.qyhl.webtv.module_live.teletext.detail.popview.activity;

import com.qyhl.webtv.commonlib.entity.live.ShoppingListBean;

import java.util.List;

public class TeleTextShopListPresenter implements TeleTextShopListContract.TeleTextShopListPresenter {
    private TeleTextShopListContract.TeleTextShopListView mView;
    private TeleTextShopListModel mModel;

    public TeleTextShopListPresenter(TeleTextShopListContract.TeleTextShopListView mView) {
        this.mView = mView;
        this.mModel = new TeleTextShopListModel(this);
    }

    @Override
    public void getShopList(String page) {
        mModel.getShopList(page);
    }

    @Override
    public void setShopList(List<ShoppingListBean> beanList, boolean isMore) {
        mView.setShopList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
